<!DOCTYPE html>
<html class="x-admin-sm">

<head>
  <meta charset="UTF-8">
  <title>角色管理</title>
  <meta name="角色管理" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
  <link rel="stylesheet" href="../../css/font.css">
  <link rel="stylesheet" href="../../css/xadmin.css">
  <script src="../../lib/layui/layui.js" charset="utf-8"></script>
  <script type="text/javascript" src="../../js/xadmin.js"></script>

  <!-- 引入公用JavaScript -->
  <script src="../../js/jquery.min.js"></script>
  <script src="../../js/app.js"></script>
</head>

<body>

  <div class="x-nav">
    <span class="layui-breadcrumb">
      <a href="">首页</a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      onclick="location.reload()" title="刷新">
      <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
  </div>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">

          <!-- 管理员管理该地区的用户角色 -->
          <div class="layui-card-header">
            <span id="city" style="font-size: 24px;">角色管理</span>
            <span style="position: absolute; right: 3%;"><button class="layui-btn" onclick="xadmin.open('新增','role-add.html',500,150)"><i class="layui-icon"></i>新增</button></span>
          </div>
          <div class="layui-card-body layui-table-body layui-table-main">
            <table class="layui-table layui-form">
              <thead>
                <tr>
                  <th>角色ID</th>
                  <th>角色</th>
                  <th>修改名称</th>
                  <th>删除</th>
              </thead>
              <tbody id="tbody">
                <!-- 用户信息 -->
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>

<script src="./role-data.js"></script>
<script>
  layui.use(['laydate', 'form'], function () {
    var laydate = layui.laydate;
    var form = layui.form;

    //执行一个laydate实例
    laydate.render({
      elem: '#start' //指定元素
    });

    //执行一个laydate实例
    laydate.render({
      elem: '#end' //指定元素
    });


  });

</script>


</html>